<div class="wrap"> 
    <h2>LightPress Preformatter</h2>
    <form method="post" action="admin.php?page=lightpress/wp-plugin/preformatter.php">
        <fieldset class="options">
            <legend>Preformatter options and control</legend>
            <table class="optiontable">
                <tr valign="top"> 
                    <th scope="row"><label for="lp_opt_use_preformatter">Preformatted status:</label></th> 
                    <td>
                        <select name="lp_opt_use_preformatter">
                            <option value="0">disabled</option>
                            <option{lp_opt_use_preformatter_1} value="1">enabled</option>
                        </select>
                    </td>
                </tr>
                <tr valign="top"> 
                    <th scope="row"><label for="lp_opt_preformatter_method">Formatting method:</label></th> 
                    <td>
                        <select name="lp_opt_preformatter_method">
                            <option value="wp">WordPress</option>
                            <option{lp_opt_preformatter_method_lp} value="lp">Lightpress</option>
                        </select>
                    </td>
                </tr>
            </table>
            <p class="submit"><input type="submit" name="activate" value="Update Options &raquo;" /></p>
        </fieldset>
    </form>
    <form method="post" action="admin.php?page=lightpress/wp-plugin/preformatter.php">
        <fieldset class="options">
            <legend>Preformat existing posts</legend>
            <table class="optiontable">
                <tr valign="top"> 
                    <th scope="row"><label for="include_all">Already preformatted posts:</label></th> 
                    <td>
                        <select name="include_all">
                            <option value="0">do not convert again</option>
                            <option{include_all} value="1">include in conversion</option>
                        </select>
                    </td>
                </tr>
                <tr valign="top"> 
                    <th scope="row"><label for="batch_method">Batch conversion method:</label></th> 
                    <td>
                        <select name="batch_method">
                            <option value="wp">WordPress</option>
                            <option{batch_method} value="lp">Lightpress</option>
                        </select>
                    </td>
                </tr>
                <tr valign="top">
                    <th scope="row"><label for="batch_size">Batch size:</label></th> 
                    <td>
                        <select name="batch_size">
                            <option value="0">convert all</option>
                            <option{batch_size_10} value="10">10 posts</option>
                            <option{batch_size_50} value="50">50 posts</option>
                            <option{batch_size_100} value="100">100 posts</option>
                        </select>
                    </td>
                </tr>
                <tr valign="top">
                    <th scope="row"><label for="batch_start">Batch start:</label></th> 
                    <td>
                        <input type="text" name="batch_start" value="{batch_start}" />
                    </td>
                </tr>
            </table>
            <p class="submit"><input type="submit" name="convert" value="Start Conversion &raquo;" /></p>
        </fieldset>
    </form>
    <form method="post" action="admin.php?page=lightpress/wp-plugin/preformatter.php">
        <fieldset class="options">
            <legend>Remove preformatting</legend>
            <p class="submit"><input type="submit" name="clear" value="Remove from All Posts &raquo;" /></p>
        </fieldset>
    </form>
</div>
